// ************************************************************* //
//                                                               //
//        Copyright (C) 2015 by Socionext Inc.                   //
//        All rights reserved.                                   //
//        Socionext Inc. Proprietary and Confidential.           //
//                                                               //
// ************************************************************* //
/*****************************************************************************/
/**
 * @file em_if_ext.h
 * @brief external interface of functions group
 * @note None
 * @attention None
 *
 */
/*****************************************************************************/

// include -------------------------------------
// #include "rom_main.h"
#include "loader.h"

// function -------------------------------------
extern int MWEM_Init(void);
extern int MWEM_Set_Config(unsigned int mode);
extern int MWEM_Set_AccessPartition(unsigned int partition);
extern int MWEM_Get_Config(unsigned int* mode);
extern int MWEM_DeviceInit(void);
extern int MWEM_Bread(void *devinfo, unsigned long start, unsigned long cnt, char* data);
extern int MWEM_DirectRead(unsigned long start, unsigned long cnt, char* data);
extern int MWEM_Bwrite(void *devinfo, unsigned long start, unsigned long cnt, char* data);
extern int MWEM_DirectWrite(unsigned long start, unsigned long cnt, char* data);
extern int MWEM_End(void);
